//
//  File.swift
//  File
//
//  Created by ellzu gu on 2021/9/6.
//

import Foundation

public class DispatchError: EZError {
    public static let domain: String = "PacketError"
    public enum Code: Int {
        case NotEnoughBuffer = 1
        case UnsupportVersion = 2
        case FormatterError = 3
        
        case ParameterError = 101
        
    }
    public init(_ code: Code, message: String? = nil, subError: EZError? = nil) {
        super.init(Self.domain, code.rawValue, message: message, subError: subError)
    }
}
